<!DOCTYPE html>
<html>
<head>
    <title>打印</title>
    <meta charset="utf-8">
    <!-- 打印的样式-->
    <style media="print">
        @page {

        }
    </style>
    <script src="/jquery-3.6.0.min.js"></script>
    <script src="/dist_JsBarcode.all.min.js"></script>
    <script language="javascript" src="./prints/Lodop6.161/LodopFuncs.js"></script>
    <link rel="stylesheet" href="042210010592_files/style.css">
    <link rel="stylesheet" href="css/style.css">
    <script>
        function batchPrint(){
            showPrint();
        }
        function current() {
            var d = new Date(),
                str = '';
            str += d.getFullYear() + '-'; //获取当前年份
            str += d.getMonth() + 1 + '-'; //获取当前月份（0——11）
            str += d.getDate() + ' ';

            return str;
        }
        function currenttime() {
            var d = new Date(),
                str = '';
            str += d.getHours() + ':';
            str += d.getMinutes() + ':';
            str += d.getSeconds() ;
            return str;
        }
        window.onload = function() {
            var reg = new RegExp("(^|&)waterId=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null)
                var   waterid = unescape(r[2]);
            document.getElementById("waterId").value=waterid;
            var prints = window.sessionStorage.getItem("print"+waterid);
            document.getElementById("printsdiv").innerHTML=prints;
        }

    </script>
</head>

<body>
<div class="main">
    <div class="header">
        <div class="headerL">
            <img src="images/u7.png">
            <div class="name">
                <p class="name1">
                    山东大学附属儿童医院
                </p>
                <p class="des">
                    Childern’s  Hospital Affiliated to Shandong Universitry
                </p>
            </div>
        </div>
        <div class="headerR">
            <span>2022 年 4 月 19 日</span>
            <span>
                    22 : 14
                </span>
        </div>
    </div>
    <div class="con">
        <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0">
            <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="./Lodop6.161/install_lodop32.exe"></embed>
        </object>
            <div style="width: 1204px;margin-left: 150px;" id="tableData">
<!--startprint-->
<div class="stl_02">
    <div class="view">
        <div class="stl_05 stl_06">
            <div class="stl_01" style="top:1.5453em; left:13.12em;"><span class="stl_07 stl_08 stl_09" style="font-weight:bold;"></span></div>
            <div class="stl_01" style="top:1.5453em; left:14.4505em;"><span class="stl_07 stl_08 stl_10" style="font-weight:bold; word-spacing:0.248em;">山东大学附属儿童医院 济南市儿童医院 &nbsp;</span></div>
            <div class="stl_01" style="top:3.513em; left:19.9em;"><span class="stl_11 stl_08 stl_09" style="font-weight:bold; word-spacing:-0.002em;">检验报告单 &nbsp;</span></div>
            <div class="stl_01" style="top:4.4052em; left:40.57em;"><span class="stl_12 stl_08 stl_19" style="font-weight:bold;word-spacing:-0.006em;">质评合格 全省参考 &nbsp;</span></div>
            <div class="stl_01" style="top:6.9449em; left:1.9002em;"><span class="stl_14 stl_08 stl_15" style="word-spacing:0.5127em;">姓名:</span><span class="stl_16 stl_17 stl_18" style="word-spacing:0.4251em;">潘成刚 </span></div>
            <div class="stl_01" style="top:6.9449em; left:10.8999em;"><span class="stl_14 stl_08 stl_19" style="word-spacing:0.0588em;">性别: </span><span class="stl_16 stl_17 stl_20" style="word-spacing:0.0487em;">男 &nbsp;</span></div>
            <div class="stl_01" style="top:6.9449em; left:16.8998em;"><span class="stl_14 stl_08 stl_21">年龄:</span><span class="stl_16 stl_17 stl_22">7</span></div>
            <div class="stl_01" style="top:6.9449em; left:22.8996em;"><span class="stl_14 stl_08 stl_23">标本类型: &nbsp;</span><span class="stl_16 stl_17 stl_20" style="word-spacing:0.0487em;">咽拭子&nbsp;</span></div>
            <div class="stl_01" style="top:6.9449em; left:31.8994em;"><span class="stl_14 stl_08 stl_24">身份证号：</span><span class="stl_16 stl_17 stl_25">370983198911135623 &nbsp;</span></div>
            <div class="stl_01" style="top:8.7449em; left:1.9002em;border-bottom: #000000 1px solid;width: 45em;height: 15px;"></div>
            <div class="stl_01" style="top:8.9449em; left:1.8993em;"><span class="stl_14 stl_08 stl_09">序</span></div>
            <div class="stl_01" style="top:8.9449em; left:7.8992em;"><span class="stl_14 stl_08 stl_27">代号 &nbsp;</span></div>
            <div class="stl_01" style="top:8.9449em; left:13.899em;"><span class="stl_14 stl_08 stl_13">项目名称 &nbsp;</span></div>
            <div class="stl_01" style="top:8.9449em; left:25.8987em;"><span class="stl_14 stl_08 stl_27"> 结果&nbsp;</span></div>
            <div class="stl_01" style="top:8.9449em; left:31.8986em;"><span class="stl_14 stl_08 stl_13"> 参考范围&nbsp;</span></div>
            <div class="stl_01" style="top:8.9449em; left:40.8984em;"><span class="stl_14 stl_08 stl_27">单位 &nbsp;</span></div>
            <div class="stl_01" style="top:10.7449em; left:1.9002em;border-bottom: #000000 3px solid;width: 45em;height: 15px;"></div>

            <div class="stl_01" style="top:10.9448em; left:1.8985em;"><span class="stl_26 stl_08 stl_09">1</span></div>
            <div class="stl_01" style="top:10.9448em; left:7.8983em;"><span class="stl_26 stl_08 stl_28">2019-022e &nbsp;</span></div>
            <div class="stl_01" style="top:10.9448em; left:13.2517em;"><span class="stl_16 stl_17 stl_09" style="word-spacing:0.5em;">新型冠状毒核酸检测 &nbsp;</span></div>
            <div class="stl_01" style="top:10.9448em; left:25.8358em;"><span class="stl_16 stl_17 stl_09">阴性 &nbsp;</span></div>
            <div class="stl_01" style="top:10.9448em; left:31.8978em;"><span class="stl_26 stl_08 stl_27">阴性&nbsp;</span></div>

            <div class="stl_01" style="top:12.9448em; left:1.8985em;"><span class="stl_26 stl_08 stl_09">2</span></div>
            <div class="stl_01" style="top:12.9448em; left:7.8983em;"><span class="stl_26 stl_08 stl_28">2019-01e &nbsp;</span></div>
            <div class="stl_01" style="top:12.9448em; left:13.2517em;"><span class="stl_16 stl_17 stl_09" style="word-spacing:0.5em;">新型冠状毒核酸检测 &nbsp;</span></div>
            <div class="stl_01" style="top:12.9448em; left:25.8358em;"><span class="stl_16 stl_17 stl_09">阴性 &nbsp;</span></div>
            <div class="stl_01" style="top:12.9448em; left:31.8978em;"><span class="stl_26 stl_08 stl_27">阴性&nbsp;</span></div>

            <div class="stl_01" style="top:29.5449em; left:1.9002em;border-bottom: #000000 3px solid;width: 45em;height: 15px;"></div>
            <div class="stl_01" style="top:29.9452em; left:1.8977em;"><span class="stl_26 stl_08 stl_29" style="word-spacing:0.3692em;">接收时间：</span><span class="stl_16 stl_17 stl_30" style="word-spacing:0.3062em;">2022-04-21 12:00:00 &nbsp;</span></div>
            <div class="stl_01" style="top:29.9453em; left:16.5052em;"><span class="stl_26 stl_08 stl_31" style="word-spacing:0.3529em;">报告时间：</span><span class="stl_16 stl_17 stl_32" style="word-spacing:0.2926em;">2022-04-21 12:00:00 &nbsp;</span></div>
            <div class="stl_01" style="top:31.9452em; left:1.9003em;"><span class="stl_26 stl_08 stl_33" style="word-spacing:0.0082em;">本检测报告可能受到采样时间、采样部位及方法学局限性等因素的影响，结果需结合临床进行分析。本报告仅对本次检测标本负责。 &nbsp;</span></div>
            <div class="stl_01" style="top:32.9452em; left:1.9011em;"><span class="stl_26 stl_08 stl_13">&nbsp;</span></div>
        </div>
    </div>
</div>
<!--endprint-->
            </div>
        <div style="margin-top: 50px;text-align: center;">
            <div style="width: 150px;margin-left: 45%;">
             <p class="baogaobtn"  onclick='batchPrint()'>打印</p>
            </div>
        </div>
    </div>
    <div class="footer">
        <img src="images/u29.svg">
        400 8000 000
    </div>
    </div>


</body>

<script type="text/javascript">
    var LODOP; //声明为全局变量
    function CreatePrintPage(tableTitle,domId) {
        LODOP.ADD_PRINT_TEXT(21,300,600,30,tableTitle+"\n");//LODOP.ADD_PRINT_TEXT(21,300,151,30,"标题\n");
        LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
        LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
        LODOP.SET_PRINT_STYLEA(0,"Horient",2);
        LODOP.ADD_PRINT_TABLE("2%","1%","96%","98%",document.getElementById(domId).innerHTML);
    };
    function CreatePage(){
        var strBodyStyle="<style> sup {position: relative;top: -0.4em;vertical-align: baseline;}sub {position: relative;top: 0.4em;vertical-align: baseline;}a:link {text-decoration:none;}a:visited {text-decoration:none;}@media screen and (min-device-pixel-ratio:0), (-webkit-min-device-pixel-ratio:0), (min--moz-device-pixel-ratio: 0) { .view { font-size:10em; transform:scale(0.1); -moz-transform:scale(0.1); -webkit-transform:scale(0.1); -moz-transform-origin:top left; -webkit-transform-origin:top left; } }.layer { }.ie { font-size: 1pt; }.ie body { font-size: 12em; }.stl_01 {position: absolute;white-space: nowrap;}.stl_02 {height: 35em;font-size: 1em;margin: 0em;display: block;border-style: none;width: 49.58333em;}.stl_03 {position: relative;}.stl_04 {position: absolute;left: 0em;top: 0em;}.stl_05 {position: relative;width: 49.58333em;}.stl_06 {height: 3.5em;}.ie .stl_06 {height: 35em;}@font-face {font-family:\"RMKCCD+STSongti-SC-Bold\";src:url(\"b95186bf-0001-0000-0000-000000000000.woff\") format(\"woff\");}.stl_07 {font-size: 1.329167em;font-family: \"RMKCCD+STSongti-SC-Bold\", \"Times New Roman\";color: #000000;}.stl_08 {line-height: 1.4em;}.stl_09 {letter-spacing: 0em;}.ie .stl_09 {letter-spacing: 0px;}.stl_10 {letter-spacing: 0.0035em;}.ie .stl_10 {letter-spacing: 0.0744px;}.stl_11 {font-size: 1.670833em;font-family: \"RMKCCD+STSongti-SC-Bold\", \"Times New Roman\";color: #000000;}@font-face {font-family:\"TTSUJV+STSongti-SC-Black\";src:url(\"9312c130-0000-0000-0000-000000000000.woff\") format(\"woff\");}.stl_12 {font-size: 0.829167em;font-family: \"TTSUJV+STSongti-SC-Black\", \"Times New Roman\";color: #000000;}.stl_13 {letter-spacing: 0.005em;}.ie .stl_13 {letter-spacing: 0.0663px;}@font-face {font-family:\"LRHEJF+STSongti-SC-Regular\";src:url(\"98585fbf-0000-0000-0000-000000000000.woff\") format(\"woff\");}.stl_14 {font-size: 0.829167em;font-family: \"LRHEJF+STSongti-SC-Regular\", \"Times New Roman\";color: #000000;}.stl_15 {letter-spacing: 0.0452em;}.ie .stl_15 {letter-spacing: 0.5992px;}@font-face {font-family:\"EDAGTF+STSongStd-Light-UniGB-UCS2-H\";src:url(\"dc54d256-0000-0000-0000-000000000000.woff\") format(\"woff\");}.stl_16 {font-size: 0.8em;font-family: \"微软雅黑\";color: #000000;}.stl_17 {line-height: 1em;}.stl_18 {letter-spacing: 0.0374em;}.ie .stl_18 {letter-spacing: 0.5992px;}.stl_19 {letter-spacing: 0.007em;}.ie .stl_19 {letter-spacing: 0.0929px;}.stl_20 {letter-spacing: 0.0058em;}.ie .stl_20 {letter-spacing: 0.0929px;}.stl_21 {letter-spacing: -0.0026em;}.ie .stl_21 {letter-spacing: -0.0344px;}.stl_22 {letter-spacing: -0.0022em;}.ie .stl_22 {letter-spacing: -0.0344px;}.stl_23 {letter-spacing: 0.0061em;}.ie .stl_23 {letter-spacing: 0.0815px;}.stl_24 {letter-spacing: -0.0333em;}.ie .stl_24 {letter-spacing: -0.4421px;}.stl_25 {letter-spacing: -0.0276em;}.ie .stl_25 {letter-spacing: -0.4421px;}.stl_26 {font-size: 0.829167em;font-family: \"LRHEJF+STSongti-SC-Regular\", \"Times New Roman\";color: #000007;}.stl_27 {letter-spacing: 0.001em;}.ie .stl_27 {letter-spacing: 0.0133px;}.stl_28 {letter-spacing: 0.0017em;}.ie .stl_28 {letter-spacing: 0.0232px;}.stl_29 {letter-spacing: -0.0827em;}.ie .stl_29 {letter-spacing: -1.0973px;}.stl_30 {letter-spacing: -0.0686em;}.ie .stl_30 {letter-spacing: -1.0973px;}.stl_31 {letter-spacing: -0.0745em;}.ie .stl_31 {letter-spacing: -0.9887px;}.stl_32 {letter-spacing: -0.0618em;}.ie .stl_32 {letter-spacing: -0.9887px;}.stl_33 {letter-spacing: 0.0049em;}.ie .stl_33 {letter-spacing: 0.0653px;} </style>";
        var strStyleCSS="<link href='042210010592_files/style.css' type='text/css' rel='stylesheet'>";
        var strDataHtml=strStyleCSS+strBodyStyle+"<body>"+document.getElementById("tableData").innerHTML+"</body>";
         console.log(strDataHtml);
        //LODOP.ADD_PRINT_TABLE("2%","1%","96%","98%",strDataHtml);
        //LODOP.ADD_PRINT_HTM("2%","1%","96%","98%",strDataHtml);

        LODOP.ADD_PRINT_HTM("0","0","1000px","500px",strDataHtml);
    }
    function showPrint(){
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
        LODOP.PRINT_INIT("打印报告");
        // LODOP.SET_PRINTER_INDEX("DASCOM DT-330");//指定某虚拟打印机"DASCOM DT-330");
        CreatePage();
        LODOP.PREVIEW();	//打印预览
        // LODOP.PRINT();	//直接打印
        window.parent.close();
    }
    function print_page() {
        if (!!window.ActiveXObject || "ActiveXObject" in window) { //是否ie
            remove_ie_header_and_footer();
        }
        bdhtml = window.document.body.innerHTML;
        var oldstr = document.body.innerHTML;
        sprnstr = "<!--startprint-->";
        eprnstr = "<!--endprint-->";
        prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
        prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
        window.document.body.innerHTML = prnhtml;
        console.log(prnhtml);
        window.print();
        document.body.innerHTML = oldstr;

    }

    function remove_ie_header_and_footer() {
        var hkey_path;
        hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
        try {
            var RegWsh = new ActiveXObject("WScript.Shell");
            RegWsh.RegWrite(hkey_path + "header", "");
            RegWsh.RegWrite(hkey_path + "footer", "");
        } catch (e) {
        }
    }

   /* print_page()*/
</script>
</html>
